/**
 * GUI - VaelgInfo
 * @author Mikkel Christiansen
 */

package com.kea.firsthorse.client;

import com.kea.firsthorse.shared.Horse;
import com.sksamuel.jqm4gwt.list.JQMList;
import com.sksamuel.jqm4gwt.list.JQMListItem;

public class GUI_VaelgInfo extends GUI_Master {

	private JQMList formattedlist;
	private JQMListItem stamdata;
	private JQMListItem oversigt;
	private JQMListItem betingelser;
	private JQMListItem betalinger;

	public GUI_VaelgInfo(Horse horse) {

		super();

		formattedlist = new JQMList();
		formattedlist.addDivider("Oversigt");
		formattedlist.setInset(true); // Afrunder hjørner og giver luft.
		add(formattedlist);

		GUI_Stamdata stamdatapage = new GUI_Stamdata(horse);
		stamdata = formattedlist.addItem("Stamdata", stamdatapage);
		stamdata.setThumbnail("images/stamdata.png");

		GUI_Oversigt oversigtpage = new GUI_Oversigt(horse.getHorsepolicy());
		oversigt = formattedlist.addItem("Oversigt", oversigtpage);
		oversigt.setThumbnail("images/oversigt.png");

		GUI_Betingelser betingelserpage = new GUI_Betingelser(
				horse.getHorsepolicy());
		betingelser = formattedlist.addItem("Betingelser", betingelserpage);
		betingelser
				.setThumbnail("images/betingelser.png");

		GUI_Betalinger betalingerpage = new GUI_Betalinger(
				horse.getHorsepolicy());
		betalinger = formattedlist.addItem("Betalinger", betalingerpage);
		betalinger
				.setThumbnail("images/betalinger.png");

	}

}
